package com.fms.exception;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class NotLoginException extends RuntimeException {
    private Integer code;//异常的状态码

    public NotLoginException(Integer code) {
        this.code = code;
    }

    public NotLoginException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public NotLoginException(String message, Throwable cause, Integer code) {
        super(message, cause);
        this.code = code;
    }

    public NotLoginException(Throwable cause, Integer code) {
        super(cause);
        this.code = code;
    }

    public NotLoginException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Integer code) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
    }
}